package cn.democpp.service.impl;

import cn.democpp.dao.UserDao;
import cn.democpp.pojo.User;
import cn.democpp.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource(name = "userDao")
    private UserDao userDao;
    @Override
    public List<User> findAllUser() {
        List<User> users = userDao.selectAllUser();
        return users;
    }
}
